package com.it.tydic.estate.module.service;

import com.it.tydic.estate.module.model.inner.TbResource;
import com.it.tydic.estate.module.model.inner.TbUser;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ResourceService {

    List<TbResource> initMenu();

    int deleteById(String id);

    TbResource findById(String id);

    int deleteByIds(List<String> idList);

    int addOrUpdate(TbResource tbResource);

    List<TbResource> findResourceListByRoleId(String roleId);

    List<TbResource> findResourceTreeListByRoleId(String roleId);

    boolean resourceIsUseByList(List<String> idList);

    boolean resourceIsUseById(String id);
}
